// RemarkName.cpp : implementation file
//

#include "stdafx.h"
#include "udpclient.h"
#include "RemarkName.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRemarkName dialog


CRemarkName::CRemarkName(CWnd* pParent /*=NULL*/)
	: CDialog(CRemarkName::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRemarkName)
	m_RemarkNameStr = _T("");
	//}}AFX_DATA_INIT
}


void CRemarkName::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRemarkName)
	DDX_Control(pDX, IDC_EDIT_ADD_REMARKNAME, m_RemakName);
	DDX_Text(pDX, IDC_EDIT_ADD_REMARKNAME, m_RemarkNameStr);
	//}}AFX_DATA_MAP
	DDX_Control(pDX, IDC_NOTICE, m_Notice);
	this->m_Notice.SetWindowTextA(this->m_NoticStr);
}


BEGIN_MESSAGE_MAP(CRemarkName, CDialog)
	//{{AFX_MSG_MAP(CRemarkName)
	ON_BN_CLICKED(ID_OK, OnOk)
	//}}AFX_MSG_MAP
	ON_BN_CLICKED(ID_CANCEL, &CRemarkName::OnBnClickedCancel)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRemarkName message handlers

void CRemarkName::OnOk() 
{
	// TODO: Add your control notification handler code here
	this->m_RemakName.GetWindowTextA(this->m_RemarkNameStr);
	this->bChangeName = true ;
	CDialog::OnOK();
}

void CRemarkName::OnBnClickedCancel()
{
	this->bChangeName=false ;
	CDialog::OnCancel();
}
